import java.math.BigDecimal;
        import java.util.Scanner;

/**
 * 从输入任意个整型数，统计其中的负数个数并求所有非负数的平均值
 */
public class NegativeNumberReverse {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            String[] arr = line.split(" ");
            int negativeNum = 0;
            int positiveNum = 0;
            double sum = 0;
            for (int i=0; i<arr.length; i++) {
                if(Integer.parseInt(arr[i]) < 0) {
                    negativeNum ++;
                } else {
                    sum += Integer.parseInt(arr[i]);
                    positiveNum ++;
                }
            }
            System.out.println(negativeNum);
            if (positiveNum != 0) {
                System.out.println(new BigDecimal(sum / positiveNum).setScale(1, BigDecimal.ROUND_HALF_UP).doubleValue());
            } else {
                System.out.println(sum);
            }
        }
    }
}
